package pages;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

public class SectionChildrenPage extends BasePage {
    public static final String URL = "http://rozetka.com.ua/kids/c88468/";
    public SectionChildrenPage(WebDriver driver) {
        super(driver, URL);
    }
    public boolean isLoaded() {
        return driver.findElements(By.xpath("//a[@class='m-cat-l-i-title-link' and contains(text(),'Развивающие игры')]")).size() == 1;
      }

    @Override
    public String getURL() {
        return URL;
    }


}
